using System.Windows.Controls;
using Microsoft.Practices.Prism.ViewModel;
using CharacterCreation.Data.Services;
using CharacterCreation.Data.Models;
using System.Collections.ObjectModel;
using CharacterCreation.Data;
using System.Linq;
using CharacterCreation.Views.Contracts;

namespace CharacterCreation.Views {
    /// <summary>
    /// New character view model
    /// </summary>
    public partial class CharacterNewViewModel : BaseViewModel {

        private CharacterService _characterService = CharacterService.CreateInstance();

        /// <summary>
        /// Gets or sets the Character
        /// </summary>
        public Character Character {
            get { return _characterService.NewItem; }
        }

        /// <summary>
        /// Races
        /// </summary>
        public ObservableCollection<Race> Races {
            get { return RaceService.CreateInstance().Items; }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        public CharacterNewViewModel() { }
    }
}